<script>
    var printLabelUrl = '<?php echo $this->getPrintLabelUrl(); ?>';
</script>

<div class="entry-edit-head">
	<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Barcodes'); ?></h4> 
</div>
<div class="entry-edit">
    
        <fieldset id="my-fieldset">
            <table cellspacing="0" class="form-list">
                <tr>
                    <td width="250"><?php echo $this->__('Product barcodes'); ?></td>
                    <td class="input-ele">
                    	<textarea id="barcodes" name="barcodes" cols="30" rows="5"><?php echo $this->getBarcodesAsString(); ?></textarea> <i>(1 barcode per line)</i>
                    </td>
               	</tr>
                <tr>
                    <td width="250"><?php echo $this->__('Print labels'); ?></td>
                    <td class="input-ele">
                        <input type="text" name="label_count" id="label_count" size="3" value="10">
                        <button onclick="printLabels();" class="scalable" type="button"><span><?php echo $this->__('Print')?></span></button>
                    </td>
                </tr>
            </table>
        </fieldset>
        
</div>

<div class="entry-edit-head">
	<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Serials Numbers'); ?></h4> 
</div>
<?php
	//add product serial grid
	echo $this->getLayout()
				->createBlock('AdvancedStock/Product_Edit_Tabs_Serials')
				->setTemplate('AdvancedStock/Product/Edit/Tab/Serials.phtml')
				->setProduct($this->getProduct())
				->toHtml();
?>

<div class="entry-edit-head">
	<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Add Serials'); ?></h4> 
</div>
<div class="entry-edit">
        <fieldset id="my-fieldset">
            <table cellspacing="0" class="form-list">
                <tr>
		            <td width="250"><?php echo $this->__('New serials'); ?></td>
                    <td class="input-ele">
                    	<textarea id="serials_to_add" name="serials_to_add" cols="60" rows="10"></textarea> <i>(1 serial per line)</i>
                    </td>
               	</tr>
            </table>
        </fieldset>
</div>